#ifndef __LIBPKG_COMPAT_H__
#define __LIBPKG_COMPAT_H__

/* Query installed packages. */
char **match_installed(int, char **, int *);
char **match_byorigin(const char *, int *);
char ***matchallbyorigin(const char **, int *);
int isinstalledpkg(const char *);
int pattern_match(int, char *, const char *);

const char      *fileGetURL(const char *, const char *, int);

#endif
